package com.ruoyi.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.TProjectPaymentMapper;
import com.ruoyi.web.domain.TProjectPayment;
import com.ruoyi.web.service.ITProjectPaymentService;
import com.ruoyi.common.core.text.Convert;

/**
 * 项目支付信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-08
 */
@Service
public class TProjectPaymentServiceImpl implements ITProjectPaymentService 
{
    @Autowired
    private TProjectPaymentMapper tProjectPaymentMapper;

    /**
     * 查询项目支付信息
     * 
     * @param id 项目支付信息主键
     * @return 项目支付信息
     */
    @Override
    public TProjectPayment selectTProjectPaymentById(Long id)
    {
        return tProjectPaymentMapper.selectTProjectPaymentById(id);
    }

    /**
     * 查询项目支付信息列表
     * 
     * @param tProjectPayment 项目支付信息
     * @return 项目支付信息
     */
    @Override
    public List<TProjectPayment> selectTProjectPaymentList(TProjectPayment tProjectPayment)
    {
        return tProjectPaymentMapper.selectTProjectPaymentList(tProjectPayment);
    }

    /**
     * 新增项目支付信息
     * 
     * @param tProjectPayment 项目支付信息
     * @return 结果
     */
    @Override
    public int insertTProjectPayment(TProjectPayment tProjectPayment)
    {
        return tProjectPaymentMapper.insertTProjectPayment(tProjectPayment);
    }

    /**
     * 修改项目支付信息
     * 
     * @param tProjectPayment 项目支付信息
     * @return 结果
     */
    @Override
    public int updateTProjectPayment(TProjectPayment tProjectPayment)
    {
        return tProjectPaymentMapper.updateTProjectPayment(tProjectPayment);
    }

    /**
     * 批量删除项目支付信息
     * 
     * @param ids 需要删除的项目支付信息主键
     * @return 结果
     */
    @Override
    public int deleteTProjectPaymentByIds(String ids)
    {
        return tProjectPaymentMapper.deleteTProjectPaymentByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目支付信息信息
     * 
     * @param id 项目支付信息主键
     * @return 结果
     */
    @Override
    public int deleteTProjectPaymentById(Long id)
    {
        return tProjectPaymentMapper.deleteTProjectPaymentById(id);
    }
}
